// 导入封装的axios
import axios from "@/utils/http";
// 导入封装的接口地址
import * as baseURL from "@/api/url";


// 查询所有老人信息
export const getNursingAPI = (params) => {
    const url = baseURL.nursing_findall_url;
    return axios({
        url: url,
        method: "get",
        params,
    });
};
// 查询所有老人信息
export const getNursingByEldAPI = (params) => {
    const url = baseURL.nursing_findByEld_url.replace(':eldId', params.eldId);;
    return axios({
        url: url,
        method: "get",
        params,
    });
};